package com.chenfan.process.enums;

import lombok.Getter;

/**
 * @author K
 * @date 2021/2/26
 */
@Getter
public enum FrontNodeTypeEnums {
    /**
     * 开始
     */
    START(0, "开始", "Start"),
    /**
     * 结束
     */
    End(-2, "结束", "End"),;

    private Integer code;
    private String messageValue;
    private String message;

    FrontNodeTypeEnums(Integer code, String message, String messageValue) {
        this.code = code;
        this.message = message;
        this.messageValue = messageValue;
    }

    public static boolean isStart(String category) {
        return START.getMessageValue().equals(category);
    }

    public static boolean isEnd(String category) {
        return End.getMessageValue().equals(category);
    }
}
